<?php
//  	获得最新的文章
		$arcModel = new \Common\Model\Arc;
		$arcData = $arcModel
				->join('category','category_cid','=','cid')
				->orderBy('sendtime','DESC')
				->limit(3)
				->get();
//				p($data);
//		p($arcData);

//		标签云
		$tagModel = new \Common\Model\Tag;
		
		$tagData = $tagModel->get();
//		p($tagData);

//		友情链接
		$linkModel = new \Common\Model\Link;
//		p($linkModel);
		$linkData = $linkModel->get();
//		p($linkData);

?>
<footer class="hidden-xs">
			<div class="container">
				<div class="row">
					<div class="col-sm-4">
						<h4 class="_title">最新文章</h4>
						<?php foreach ($arcData as $v){?>
						<div id="<?php echo $v['aid']?>" class="_single">
							<p><a href="<?php echo U('Content/index',array('aid'=>$v['aid']))?>"><?php echo $v['title']?></a></p>
							<time><?php echo date('Y-m-d H:i:s',$v['sendtime'])?></time>
						</div>
						<?php }?>
					</div>
					<div class="col-sm-4 footer_tag">
						<div id="">
							<h4 class="_title">标签云</h4>
							<?php foreach ($tagData as $v){?>
							<a href="<?php echo U('List/index',array('tid'=>$v['tid']))?>"><?php echo $v['tname']?></a>
							<?php }?>
						</div>
					</div>
					<div class="col-sm-4">
						<h4 class="_title">友情链接</h4>
						<div id="" class="_single">
							<?php foreach ($linkData as $v){?>
							<p><a href="<?php echo $v['url']?>" target="_blank"><?php echo $v['lname']?></a></p>
							<?php }?>
						</div>
					</div>
				</div>
			</div>
		</footer>
		<div class="footer_bottom">
			<div class="container">
				<div class="row">
					<div class="col-sm-12">
						<a href="javascript:;"><?php echo C('webSet.WEB_NAME')?></a>
						 | 
						<a href="javascript:;"><?php echo C('webSet.COPY_INFO')?></a>
						 |
						<a href="javascript:;"><?php echo C('webSet.ADMIN_EMAIL')?></a>
					</div>
				</div>
			</div>
		</div>